package qrcode;

import org.iherus.codegen.qrcode.QrcodeConfig;
import org.iherus.codegen.qrcode.SimpleQrcodeGenerator;

import java.io.IOException;

/**
 * @author Khai Loon
 * @version 2017/9/8
 */
public class Qrext4j {
    public static void main(String[] args) throws IOException {
        QrcodeConfig config = new QrcodeConfig()
                .setBorderSize(2)
                .setPadding(10)
                .setMasterColor("#00BFFF")
                .setLogoBorderColor("#B0C4DE");


        String content = "https://baike.baidu.com";
        new SimpleQrcodeGenerator(config)
                .setLogo("L:\\public\\bold\\early\\src\\main\\java\\qrcode\\core.png")
                .generate(content)
                .toFile("L:\\public\\bold\\early\\src\\main\\java\\qrcode\\b.png");
    }
}
